package org.example.shop_front_api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.shop_front_api.entity.User;

import java.util.List;

@Mapper
public interface UserMapper {

    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    User findByUsername(@Param("username") String username);

    User getUserWithAddressesByUserId(@Param("userId") Long userId);
}